import org.chenmin.*;
class BootStrap {

    def init = { servletContext ->
        def c = Cate.count()
       // println "ccc:"+c
        if(c == 0){
            Cate cc = new Cate()
           // cc.id = 1
            cc.name = 'root'
            cc.info = 'root'
            cc.parent = cc
            println cc.save(flush: true )
        }
        
    }
    def destroy = {
    }
}
